package br.com.jmmarca.dao.impl;

import android.content.Context;
import br.com.jmmarca.dao.generic.AbstractDAO;
import br.com.jmmarca.dao.generic.AbtractTableDefinition;
import br.com.jmmarca.dao.generic.DataManager;
import br.com.jmmarca.model.Visitante;

public class VisitanteDAO extends AbstractDAO<Visitante> {
    
    private static VisitanteDAO instance;

    private VisitanteDAO(Context context) {
    	super(Visitante.class,new AbtractTableDefinition<Visitante>(Visitante.class), new DataManager(context));
    }

    public static VisitanteDAO getInstance(Context context) {
        if (instance == null) {
            instance = new VisitanteDAO(context);
        }
        return instance;
    }
}
